// 主路由
import Layout from "../layout";
import Login from "../pages/Login";
import Detail from "../pages/Detail";
import LiveDetails from '../pages/Marketing/children/LiveAdmin/children/LiveDetails'

// 引入菜单路由
import MeauList from "./MeauList/index";
// 添加商品的路由
import AddGoods from "@pages/Goods/children/GoodsAdmain/AddGoods"



const routes = [{
    path: "/main",
    component: Layout,
    children: [
        ...MeauList,
        {
            path: "/main/addgoods",
            component: AddGoods,
        }
    ],
},
{
    path: "/login",
    component: Login,
},
{
    path: "/detail",
    component: Detail,
},
{
    path: "/livedetails",
    component: LiveDetails,
},

{
    from: "/",
    to: "/main",
},
];

export default routes;